<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
	 <!-- 这里引入导航信息header.tpl -->
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>
		<c:if test="${flag eq 'M' }">监管报告材料上传</c:if>
		<c:if test="${flag eq 'R' }">监管报告文件上传</c:if>
	</title>
</head>
<script type="text/javascript">
var regulatoryReportPath = <%=context%> +'business/regulatoryReport';
//默认加载
$(function(){
	//把访问路径传到js
	setRegulatoryReportPath(regulatoryReportPath);
});
</script>
<body class="sub-page">
	<form name="regulatoryReportForm"  id="regulatoryReportForm" action="" method="post"  class="form-horizontal">
		<!-- 附件标识 -->
		<input type="hidden" name="resourceSign" id="resourceSign" value="REGULAT_REPORT_ADD">
		<!-- 附件id -->
		<input type="hidden" name="regAttIds" id="regAttIds">
		<input type="hidden" name="flag" id="flag" value="${flag}">
		<input type="hidden" name="reportId" id="reportId" value="${regulatoryReport.reportId }">
	 	<fieldset>
	 		<div class="page-content">
			    <div class="page-header" style="font-weight: bold;">
					<span class="form-title">
						<c:if test="${flag eq 'M' }">监管报告材料上传</c:if>
						<c:if test="${flag eq 'R' }">监管报告文件上传</c:if>
					</span>
			    </div>
			    <div class="page-body">
					
					<div class="form-group">
						<label class="col-sm-2 control-label">报告类型<span class="text-danger">*</span></label>
						<div class="col-sm-10 form-inner">
							<select name="reportType" class="form-control use-select2" placeholder="报告类型" id="reportType"  disabled="disabled">
								<option value="${regulatoryReport.reportType }">${regulatoryReport.reportTypeName }</option>
								<%-- <wasp:dictOptions dctRootType="REGULATORY_REPORT_TYPE"></wasp:dictOptions> --%>
							</select>
						</div>
					</div>	
					
					<div class="form-group" id="year_group">
						<label class="col-sm-2 control-label">报告日期<span
							class="text-danger">*</span></label>
						<div class="col-sm-10 form-inner">
							<input type="text" class="form-control" placeholder="日期" id="reportDate" name="reportDate" disabled="disabled" value="${regulatoryReport.reportDate }"/>
						</div>
					</div>	
					
					<div class="panel-body">
						<!-- 附件展示上传 -->
						<jsp:include page="/WEB-INF/jsp/system/sys/attach/attachView.jsp">
							<jsp:param name="attachList" value="${attachList}"/>
							<jsp:param name="resourceId" value=""/>
							<jsp:param name="module" value="regulatoryReportModule" />
							<jsp:param name="hasPermission" value="true" />
							<jsp:param name="resourceSign" value="REGULAT_REPORT_ADD"/>
							<jsp:param name="resourceSignModule" value="REGULAT_REPORT_ADD_MODULE"/>
							<jsp:param name="hidAttIdField"  value="{{attId}}"/>
						</jsp:include>
					</div>
				</div> 					
				<div class="page-footer" >
					<button type="button" id="submitBtn" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="submitRegulatoryReportForm();">提交</button>
					<button type="button" id="cancelBtn" class="btn btn-link btn-w-xs" onclick="window.close();">取消</button>
				</div>
			</div>
		</fieldset>
	</form>
	<script type="text/javascript" src="<%=context%>resources/modules/business/infoDisclosure/regulatoryReport/regulatoryReportAddNew.js?r=<%=Math.random()%>"></script>
	</body>
</html>